package Method;

/**
 * ClassName:MethodDemo5
 * Package:Method
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/11-23:52
 * @Version:v1.0
 */
public class MethodDemo5 {
    //方法在调用时,形参和实参必须一一对应,否则程序将报错
    public static void main(String[] args) {
        method(2.6,1.6);
    }
    public static void method(double len,double width){
        double result=(len+width)*2;
        System.out.println(result);
    }

}
